package com.member.common.enums;


import lombok.Getter;

import java.util.Objects;

/*
 * 核销状态
 */
@Getter
public enum DevelopOrderStatusEnum {
    TO_BE_SHIPPED(0, "待发货"),
    SHIPPED( 1, "已发货"),
    ;

    private final Integer key;
    private final String desc;

    DevelopOrderStatusEnum(Integer key, String desc) {
        this.key = key;
        this.desc = desc;
    }

    public static DevelopOrderStatusEnum getByKey(Integer _key) {
        for (DevelopOrderStatusEnum item : DevelopOrderStatusEnum.values()) {
            if (Objects.equals(item.getKey(), _key)) {
                return item;
            }
        }
        return null;
    }

}
